// 引入路由器
import router from './route'

import NProgress from 'nprogress'
import 'nprogress/nprogress.css'

NProgress.configure({ showSpinner: false })

// 路由加载前
router.beforeEach(() => {
	NProgress.start()
})

// 路由加载后
router.afterEach(() => {
	NProgress.done()
})
